for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
* Next, we will create a fresh Vue application instance and attach it to
* the page. Then, you may begin adding components to this application
* or customize the JavaScript scaffolding to fit your unique needs.
Vue.component('example', require('./components/Example.vue'));
Vue
/** global: Vue */
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.
const app = new Vue({
app
el: '#app'
});
import autosize from 'autosize';
autosize($('textarea'));
$('.vote-form').submit(e => {
e.preventDefault();
axios.post(`/votes/${e.target.snippet_id.value}`)
axios
/** global: axios */
.then(response => {
$(e.target.vote_btn).toggleClass('liked');
$(e.target.vote_btn).siblings('.like-counter').html(response.data.count);
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.